/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package escr.persistencia;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Aditardo
 */
@Entity
@Table(name = "horariotarde")
@NamedQueries({@NamedQuery(name = "Horariotarde.findByHormId", query = "SELECT h FROM Horariotarde h WHERE h.hormId = :hormId"), @NamedQuery(name = "Horariotarde.findByHormIniLu", query = "SELECT h FROM Horariotarde h WHERE h.hormIniLu = :hormIniLu"), @NamedQuery(name = "Horariotarde.findByHormIniMa", query = "SELECT h FROM Horariotarde h WHERE h.hormIniMa = :hormIniMa"), @NamedQuery(name = "Horariotarde.findByHormIniMi", query = "SELECT h FROM Horariotarde h WHERE h.hormIniMi = :hormIniMi"), @NamedQuery(name = "Horariotarde.findByHormIniJu", query = "SELECT h FROM Horariotarde h WHERE h.hormIniJu = :hormIniJu"), @NamedQuery(name = "Horariotarde.findByHormIniVi", query = "SELECT h FROM Horariotarde h WHERE h.hormIniVi = :hormIniVi"), @NamedQuery(name = "Horariotarde.findByHormIniSa", query = "SELECT h FROM Horariotarde h WHERE h.hormIniSa = :hormIniSa"), @NamedQuery(name = "Horariotarde.findByHormIniDo", query = "SELECT h FROM Horariotarde h WHERE h.hormIniDo = :hormIniDo"), @NamedQuery(name = "Horariotarde.findByHormFinLu", query = "SELECT h FROM Horariotarde h WHERE h.hormFinLu = :hormFinLu"), @NamedQuery(name = "Horariotarde.findByHormFinMa", query = "SELECT h FROM Horariotarde h WHERE h.hormFinMa = :hormFinMa"), @NamedQuery(name = "Horariotarde.findByHormFinMi", query = "SELECT h FROM Horariotarde h WHERE h.hormFinMi = :hormFinMi"), @NamedQuery(name = "Horariotarde.findByHormFinJu", query = "SELECT h FROM Horariotarde h WHERE h.hormFinJu = :hormFinJu"), @NamedQuery(name = "Horariotarde.findByHormFinVi", query = "SELECT h FROM Horariotarde h WHERE h.hormFinVi = :hormFinVi"), @NamedQuery(name = "Horariotarde.findByHormFinSa", query = "SELECT h FROM Horariotarde h WHERE h.hormFinSa = :hormFinSa"), @NamedQuery(name = "Horariotarde.findByHormFinDo", query = "SELECT h FROM Horariotarde h WHERE h.hormFinDo = :hormFinDo"), @NamedQuery(name = "Horariotarde.findByHormLu", query = "SELECT h FROM Horariotarde h WHERE h.hormLu = :hormLu"), @NamedQuery(name = "Horariotarde.findByHormMa", query = "SELECT h FROM Horariotarde h WHERE h.hormMa = :hormMa"), @NamedQuery(name = "Horariotarde.findByHormMi", query = "SELECT h FROM Horariotarde h WHERE h.hormMi = :hormMi"), @NamedQuery(name = "Horariotarde.findByHormJu", query = "SELECT h FROM Horariotarde h WHERE h.hormJu = :hormJu"), @NamedQuery(name = "Horariotarde.findByHormVi", query = "SELECT h FROM Horariotarde h WHERE h.hormVi = :hormVi"), @NamedQuery(name = "Horariotarde.findByHormSa", query = "SELECT h FROM Horariotarde h WHERE h.hormSa = :hormSa"), @NamedQuery(name = "Horariotarde.findByHormDo", query = "SELECT h FROM Horariotarde h WHERE h.hormDo = :hormDo"), @NamedQuery(name = "Horariotarde.findByHormFecha", query = "SELECT h FROM Horariotarde h WHERE h.hormFecha = :hormFecha"), @NamedQuery(name = "Horariotarde.findByHormHorario", query = "SELECT h FROM Horariotarde h WHERE h.hormHorario = :hormHorario"), @NamedQuery(name = "Horariotarde.findByHormRefencia", query = "SELECT h FROM Horariotarde h WHERE h.hormRefencia = :hormRefencia")})
public class Horariotarde implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "HORM_ID", nullable = false)
    private Integer hormId;
    @Column(name = "HORM_INI_LU")
    private String hormIniLu;
    @Column(name = "HORM_INI_MA")
    private String hormIniMa;
    @Column(name = "HORM_INI_MI")
    private String hormIniMi;
    @Column(name = "HORM_INI_JU")
    private String hormIniJu;
    @Column(name = "HORM_INI_VI")
    private String hormIniVi;
    @Column(name = "HORM_INI_SA")
    private String hormIniSa;
    @Column(name = "HORM_INI_DO")
    private String hormIniDo;
    @Column(name = "HORM_FIN_LU")
    private String hormFinLu;
    @Column(name = "HORM_FIN_MA")
    private String hormFinMa;
    @Column(name = "HORM_FIN_MI")
    private String hormFinMi;
    @Column(name = "HORM_FIN_JU")
    private String hormFinJu;
    @Column(name = "HORM_FIN_VI")
    private String hormFinVi;
    @Column(name = "HORM_FIN_SA")
    private String hormFinSa;
    @Column(name = "HORM_FIN_DO")
    private String hormFinDo;
    @Column(name = "HORM_LU")
    private String hormLu;
    @Column(name = "HORM_MA")
    private String hormMa;
    @Column(name = "HORM_MI")
    private String hormMi;
    @Column(name = "HORM_JU")
    private String hormJu;
    @Column(name = "HORM_VI")
    private String hormVi;
    @Column(name = "HORM_SA")
    private String hormSa;
    @Column(name = "HORM_DO")
    private String hormDo;
    @Column(name = "HORM_FECHA")
    @Temporal(TemporalType.DATE)
    private Date hormFecha;
    @Column(name = "HORM_HORARIO")
    private String hormHorario;
    @Column(name = "HORM_REFENCIA")
    private String hormRefencia;
    @OneToMany(mappedBy = "hormId")
    private Collection<Profesional> profesionalCollection;

    public Horariotarde() {
    }

    public Horariotarde(Integer hormId) {
        this.hormId = hormId;
    }

    public Integer getHormId() {
        return hormId;
    }

    public void setHormId(Integer hormId) {
        this.hormId = hormId;
    }

    public String getHormIniLu() {
        return hormIniLu;
    }

    public void setHormIniLu(String hormIniLu) {
        this.hormIniLu = hormIniLu;
    }

    public String getHormIniMa() {
        return hormIniMa;
    }

    public void setHormIniMa(String hormIniMa) {
        this.hormIniMa = hormIniMa;
    }

    public String getHormIniMi() {
        return hormIniMi;
    }

    public void setHormIniMi(String hormIniMi) {
        this.hormIniMi = hormIniMi;
    }

    public String getHormIniJu() {
        return hormIniJu;
    }

    public void setHormIniJu(String hormIniJu) {
        this.hormIniJu = hormIniJu;
    }

    public String getHormIniVi() {
        return hormIniVi;
    }

    public void setHormIniVi(String hormIniVi) {
        this.hormIniVi = hormIniVi;
    }

    public String getHormIniSa() {
        return hormIniSa;
    }

    public void setHormIniSa(String hormIniSa) {
        this.hormIniSa = hormIniSa;
    }

    public String getHormIniDo() {
        return hormIniDo;
    }

    public void setHormIniDo(String hormIniDo) {
        this.hormIniDo = hormIniDo;
    }

    public String getHormFinLu() {
        return hormFinLu;
    }

    public void setHormFinLu(String hormFinLu) {
        this.hormFinLu = hormFinLu;
    }

    public String getHormFinMa() {
        return hormFinMa;
    }

    public void setHormFinMa(String hormFinMa) {
        this.hormFinMa = hormFinMa;
    }

    public String getHormFinMi() {
        return hormFinMi;
    }

    public void setHormFinMi(String hormFinMi) {
        this.hormFinMi = hormFinMi;
    }

    public String getHormFinJu() {
        return hormFinJu;
    }

    public void setHormFinJu(String hormFinJu) {
        this.hormFinJu = hormFinJu;
    }

    public String getHormFinVi() {
        return hormFinVi;
    }

    public void setHormFinVi(String hormFinVi) {
        this.hormFinVi = hormFinVi;
    }

    public String getHormFinSa() {
        return hormFinSa;
    }

    public void setHormFinSa(String hormFinSa) {
        this.hormFinSa = hormFinSa;
    }

    public String getHormFinDo() {
        return hormFinDo;
    }

    public void setHormFinDo(String hormFinDo) {
        this.hormFinDo = hormFinDo;
    }

    public String getHormLu() {
        return hormLu;
    }

    public void setHormLu(String hormLu) {
        this.hormLu = hormLu;
    }

    public String getHormMa() {
        return hormMa;
    }

    public void setHormMa(String hormMa) {
        this.hormMa = hormMa;
    }

    public String getHormMi() {
        return hormMi;
    }

    public void setHormMi(String hormMi) {
        this.hormMi = hormMi;
    }

    public String getHormJu() {
        return hormJu;
    }

    public void setHormJu(String hormJu) {
        this.hormJu = hormJu;
    }

    public String getHormVi() {
        return hormVi;
    }

    public void setHormVi(String hormVi) {
        this.hormVi = hormVi;
    }

    public String getHormSa() {
        return hormSa;
    }

    public void setHormSa(String hormSa) {
        this.hormSa = hormSa;
    }

    public String getHormDo() {
        return hormDo;
    }

    public void setHormDo(String hormDo) {
        this.hormDo = hormDo;
    }

    public Date getHormFecha() {
        return hormFecha;
    }

    public void setHormFecha(Date hormFecha) {
        this.hormFecha = hormFecha;
    }

    public String getHormHorario() {
        return hormHorario;
    }

    public void setHormHorario(String hormHorario) {
        this.hormHorario = hormHorario;
    }

    public String getHormRefencia() {
        return hormRefencia;
    }

    public void setHormRefencia(String hormRefencia) {
        this.hormRefencia = hormRefencia;
    }

    public Collection<Profesional> getProfesionalCollection() {
        return profesionalCollection;
    }

    public void setProfesionalCollection(Collection<Profesional> profesionalCollection) {
        this.profesionalCollection = profesionalCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (hormId != null ? hormId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Horariotarde)) {
            return false;
        }
        Horariotarde other = (Horariotarde) object;
        if ((this.hormId == null && other.hormId != null) || (this.hormId != null && !this.hormId.equals(other.hormId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "escr.persistencia.Horariotarde[hormId=" + hormId + "]";
    }

}
